#include <cstdio>
#include <cstring>

using namespace std;

char in[105] = {0};

const char shuzi[10][6] = {"ling","yi","er","san","si","wu","liu","qi","ba","jiu"};

int main()
{
    int num = 0;
    scanf("%s", in);
    for(char* p = in; *p; p++){
        num += *p - '0';
    }
    sprintf(in, "%d", num);
    for(char* p = in; *p; p++){
        printf("%s%s", p==in?"":" ", shuzi[*p - '0']);
    }
    printf("\n");
}